import request from '@/utils/request'

export function page(data) {
    return request({
        url: '/qu/page',
        method: 'post',
        data
    })
}

export function save(data) {
    return request({
        url: '/qu/save',
        method: 'post',
        data
    })
}

export function findById(quId) {
    return request({
        url: `/qu/findById/${quId}`,
        method: 'get',

    })
}

export function update(data) {
    return request({
        url: '/qu/update',
        method: 'post',
        data
    })
}

export function deleteQu(quId) {
    return request({
        url: `/qu/delete/${quId}`,
        method: 'get',

    })
}

export function deleteBatch(data) {
    return request({
        url: '/qu/delete/batchDelete',
        method: 'post',
        data
    })
}
export function findByQuId(quId) {
    return request({
        url: `/qu/findById/${quId}`,
        method: 'get'
    })
}

export function getQudetail(paperId, quId) {
    return request({
        url: `/paper/qu/detail/${paperId}/${quId}`,
        method: 'get'
    })
}
